package cn.com.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.com.beans.ProfessionType;
import cn.com.mapper.ProfessionTypeMapper;
import cn.com.service.ProfessionTypeService;

import java.util.List;

@Service
public class ProfessionTypeServiceImpl implements ProfessionTypeService {

    @Resource
    private ProfessionTypeMapper professionTypeMapper;

    @Override
    public int deleteByPrimaryKey(Integer prId) {
        return professionTypeMapper.deleteByPrimaryKey(prId);
    }

    @Override
    public int insert(ProfessionType record) {
        return professionTypeMapper.insert(record);
    }

    @Override
    public int insertSelective(ProfessionType record) {
        return professionTypeMapper.insertSelective(record);
    }

    @Override
    public ProfessionType selectByPrimaryKey(Integer prId) {
        return professionTypeMapper.selectByPrimaryKey(prId);
    }

    @Override
    public int updateByPrimaryKeySelective(ProfessionType record) {
        return professionTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ProfessionType record) {
        return professionTypeMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<ProfessionType> findAll(ProfessionType professionType) {
        return professionTypeMapper.findAll(professionType);
    }

}

